﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SqlToolkit
{
    public class IDbException : Exception
    {
        protected string commandText;
        public string CommandText { get { return commandText; } }

        public IDbException(string cmdText)
            : base("An error took place while exceuting an SQL Command.")
        {
            commandText = cmdText;
        }

        public IDbException(string cmdText, Exception ex) : base("An error took place while exceuting an SQL Command.", ex)
        {
            commandText = cmdText;
        }

        public IDbException(string cmdText, string msg, Exception ex)
            : base(msg, ex)
        {
            commandText = cmdText;
        }

    }
}
